import request from '@/utils/request.js'

// 课程列表
export function KmsCourseList(data) {
  return request.post({
    url: 'KmsCourse/queryPageList',
    data: data
  })
}

// 课程目录(资源列表)
export function KmsResourceList(data) {
  return request.post({
    url: 'KmsResource/queryPageList',
    data: data
  })
}

// 更新课程的学习记录
export function KmsScourseStudying(data) {
  return request.post({
    url: 'KmsCourse/courseStudying',
    data: data
  })
}

//获取最后一次获取的时间
export function KmsLastStudied(data) {
  return request.post({
    url: 'KmsCourse/queryCourseFileLastStudiedToSeconds',
    data: data
  })
}